<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 3、构建容器节点-->
    <div id="app"></div>
  </body>
  <!-- 1、引入react核心库依赖 -->
  <script src="./react.development.js"></script>
  <!-- 2、引入react DOM依赖 -->
  <script src="./react-dom.development.js"></script>
  <!-- 4、第一个react应用，页面中渲染数据 -->
  <script>
    // 4.1 原生JS获取容器节点
    const app = document.querySelector('#app')
    // 4.2 React核心库：创建一个节点
    const h1 = React.createElement('h1', {}, 'hello world')
    // 4.3 React DOM库：将节点渲染到页面中
    ReactDOM.render(h1, app)
  </script>
</html>
